package cn.fsd.mapper;

import cn.fsd.domain.Exchange_record;
import cn.fsd.domain.Order;
import cn.fsd.domain.Task;
import cn.fsd.query.dispatch.TransferQuery;
import cn.fsd.query.storeroom.TaskQuery;
import cn.fsd.vo.storeroom.TransferInfoVO;
import cn.fsd.vo.storeroom.transfer.DistributeInfoVO;
import cn.fsd.vo.storeroom.transfer.TransferOutInfoVO;
import cn.fsd.vo.storeroom.deliveryOut.TaskTransferCommodityVO;
import cn.fsd.vo.storeroom.exchange.checkIn.TaskRecordCommodityVO;
import cn.fsd.vo.storeroom.exchange.out.TaskCommodityVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TempMapper {
    List<TransferOutInfoVO> getTransferOutInfo(TransferQuery transferQuery);

    List<DistributeInfoVO>  getDistributeInfo(TransferQuery transferQuery);

    Task findTaskById(String task_id);

    Task findTaskByOrderId(String order_id);

    void updateTask(Task task);

    List<TaskRecordCommodityVO> findExchangeCheckIn(TaskQuery taskQuery);

    List<TaskCommodityVO> findExchangeSubstation(TaskQuery taskQuery);

    List<TaskCommodityVO> findExchangeMainStation(TaskQuery taskQuery);

    List<TaskTransferCommodityVO> findDeliveryOut(TaskQuery query);

    String getOldStoreroom(String task_id);

    void insertTask(Task task);

    void insertExchangeRecord(Exchange_record exchange_record);

    TransferInfoVO findTransferById(String transfer_id);

    Order getOrderById(String order_id);
}
